# -*- coding:utf-8 -*-
"""整站路由配置文件
"""
from tornado.web import StaticFileHandler
import os
from demo import handlers as demoh
from user import handlers as userh
from news import handlers as newsh
from circle import handlers as circleh
from ad import handlers as adh
from tiku import handlers as tikuh
from info import handlers as infoh

URLS = [
    (r'/demo', demoh.DemoHandler),                                                    # 例子
    (r'/login', userh.LoginHandler),                                                  # 登录
    (r'/logout', userh.LogoutHandler),                                                # 注销
    (r'/index', userh.IndexHandler),                                                  # 首页
    (r'/menumanage', userh.MenuManageHandler),                                        # 菜单管理
    (r'/updatemenu', userh.UpdateMenuHandler),                                        # 菜单管理
    (r'/delmenu', userh.DelMenuHandler),                                              # 菜单管理
    (r'/', userh.IndexHandler),                                                       # 首页
    (r"/(menu_manage\.html)", StaticFileHandler,
     dict(path=os.path.join(os.path.dirname(__file__), "templates"))),

    (r'/getvipinfo', userh.VipUserInfoHandler),                                       # 获取用户vip1
    (r'/updatevip', userh.UpdateVipUserHandler),                                      # 设置vip1
    (r'/getvipinfo4', userh.Vip4UserInfoHandler),                                           # 获取用户vip4
    (r'/updatevip4', userh.UpdateVip4UserHandler),                                      # 设置vip4
    (r'/getbmtlist', userh.BmtListHandler),                                           # 报名通列表
    (r'/setbmt', userh.SetBmtHandler),                                                # 设置报名通
    (r'/getcouchinfo', userh.CouchUserInfoHandler),                                   # 获取教练认证列表
    (r'/getscorelist', userh.ScoreListHandler),                                       # 获取积分（金额）列表
    (r'/getscoredetail', userh.ScoreDetailHandler),                                   # 获取积分（金额）明细
    (r'/changescore', userh.ChangeScoreHandler),                                      # 手动调整积分

    (r'/couchscorelist', userh.CouchScoreListHandler),                                           # 获取积分（金额）列表
    (r'/couchscoredetail', userh.CouchScoreDetailHandler),                                   # 获取积分（金额）明细

    (r'/pricelist', userh.PriceListHandler),                                          # 订单价格列表
    (r'/updateprice', userh.UpdatePriceHandler),                                      # 修改价格
    (r'/getbasecnt', userh.GetBaseCntHandler),                                        # 获取人数基数
    (r'/setbasecnt', userh.SetBaseCntHandler),                                        # 设置人数基数
    (r'/getscoreconf', userh.GetScoreConfHandler),                                    # 奖金设置
    (r'/setscoreconf', userh.SetScoreConfHandler),                                    # 奖金设置

    (r'/getcouchauth', userh.GetCouchAuthHandler),                                    # 获取教练认证状态
    (r'/setcouchauth', userh.SetCouchAuthHandler),                                    # 修改教练认证状态
    (r'/exportallusers', userh.ExportAllUsersHandler),                                # 导出所有用户

    (r'/newslist', newsh.NewsListHandler),                                            # 报名信息列表
    (r'/newsdetail', newsh.NewsDetailHandler),                                        # 报名信息详情
    (r'/upnewsimg', newsh.UploadNewsImgHandler),                                      # 上传图片
    (r'/addnews', newsh.AddNewsHandler),                                              # 上新闻
    (r'/delnews', newsh.DelNewsHandler),                                              # 删新闻
    (r'/updatenews', newsh.UpdateNewsHandler),                                        # 改新闻
    (r'/newstocircle', newsh.NewsToCircleHandler),                                    # 系统消息到考友圈
    (r'/ueditor', newsh.UeditorHandler),                                              # 系统消息到考友圈


    (r'/saveadtype', adh.SaveAdTypeHandler),                                          # 修改广告归属
    (r'/upadimg', adh.UploadAdImgHandler),                                            # 修改广告图片
    (r'/addad', adh.AddAdHandler),                                                    # 上广告
    (r'/addetail', adh.AdDetailHandler),                                              # 广告详情
    (r'/updatead', adh.UpdateAdHandler),                                              # 修改广告
    (r'/adlist', adh.AdListHandler),                                                  # 广告列表
    (r'/delad', adh.DelAdHandler),                                                    # 删除广告
    (r'/upsharepic', adh.UpdateSharePicHandler),                                      # 修改分享图片
    (r'/getsharepic', adh.GetSharePicHandler),                                         # 获取分享图片

    (r'/circlelist', circleh.CircleListHandler),                                      # 考友圈话题列表
    (r'/couchcirclelist', circleh.CouchCircleListHandler),                                 # 教练圈话题列表
    (r'/circlestatus', circleh.CircleStatusHandler),                                  # 屏蔽话题
    (r'/circletop', circleh.CircleTopHandler),                                        # 置顶
    (r'/replylist', circleh.ReplylistHandler),                                        # 回复列表
    (r'/replystatus', circleh.ReplyStatusHandler),                                    # 屏蔽回复
    (r'/setsilence', circleh.SetSilenceHandler),                                      # 禁言

    (r'/gettikulist', tikuh.TikuListHandler),                                         # 题库列表
    (r'/deltiku', tikuh.DeleteTikuHandler),                                           # 删除题目
    (r'/updatetiku', tikuh.UpdateTikuHandler),                                        # 更新题库
    (r'/updatesortid', tikuh.UpdateTikuSortHandler),                                  # 更新题目排序ID
    (r'/updatevipid', tikuh.UpdateVIPidHandler),                                      # 更新VIP ID
    (r'/getmedialist', tikuh.GetMediaListHandler),                                    # 获取媒体列表
    (r'/delmedia', tikuh.DelMediaHandler),                                            # 删除媒体
    (r'/addmedia', tikuh.AddMediaHandler),                                            # 新增媒体
    (r'/media2mysql', tikuh.MediaToMysqlHandler),                                     #
    (r'/getvideolist', tikuh.GetVideoListHandler),                                    # 视频列表
    (r'/delvideo', tikuh.DelVideoHandler),                                            # 删除视频
    (r'/addvideo', tikuh.AddVideoHandler),                                            # 增加视频
    (r'/updatevideo', tikuh.UpdateVideoHandler),                                      # 更新视频
    (r'/exporttiku', tikuh.ExportTikuHandler),                                        # 导出题库

    (r'/pubconsultlist', infoh.PubConsultListHandler),                                # 一键咨询列表
    (r'/useraddschool', infoh.UserAddSchoolHandler),                                  # 用户提交的驾校列表
    (r'/getdriverschool', infoh.GetDriverSchoolHandler),                              # 驾校列表
    (r'/setdriverschool', infoh.SetDriverSchoolHandler),                              # 新增驾校
    (r'/deldriverschool', infoh.DelDriverSchoolHandler),                              # 删除驾校
]